<div class="panel panel-default">
    <div class="table-responsive">
        <table class="table table-hover">
            <thead class="navbar-inner">
            <tr>
                <th style="width:200px;">订单号</th>
                <th style="width:80px;">支付方式</th>
                <th style="width:80px;">订单状态</th>
                <th style="width:60px;">运费</th>
                <th style="width:60px;">拼团价</th>
                <th style="width:140px;text-align:center;">下单时间</th>
                <th style="width:100px; text-align:center;">操作</th>
            </tr>
            </thead>
            <tbody>
            {foreach name='orders' item='order'}
            <tr>
                <td>{$order['orderno']}</td>
                <td>
                    {if $order['pay_type']=='wechat'}
                    微信支付
                    {elseif $order['pay_type']=='credit'}
                    余额支付
                    {elseif $order['pay_type']=='alipay'}
                    支付宝支付
                    {else}
                    {$order['pay_type']}
                    {/if}
                </td>
                <td>
                    {if $order['status'] == 1}<span class="label label-info">已付款</span>{/if}
                    {if $order['status'] == 2}<span class="label label-success">待发货</span>{/if}
                    {if $order['status'] == -1}<span class="label label-warning">已取消</span>{/if}
                </td>
                <td>{$order['freight']} 元</td>
                <td>{$order['price']} 元</td>
                <td style="text-align:center;">{$order['paytime']}</td>
                <td style="text-align:center;">
                    <a href="{:url('groups/order/detail',array('orderid'=>$order['id']))}">查看订单</a>
                </td>
            </tr>
            {/foreach}
            </tbody>
        </table>
    </div>
</div>